package com.zrs.gmall.order.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.zrs.gmall.order.model.OrderInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.data.repository.query.Param;

/**
 * 订单表 订单表 Mapper 接口
 *
 * @author zrs
 * @since 2023-03-12
 */
public interface OrderInfoMapper extends BaseMapper<OrderInfo> {

    /**
     * 查询当前登录用户订单列表(包括订单明细)
     *
     * @param iPage
     * @param userId
     * @return
     */
    IPage<OrderInfo> getOrderList(IPage iPage, String orderStatus, @Param("userId") String userId);
}
